import  Router from 'koa-router';
import { Department } from '../models/department';
import sequelize from "../config/db";
import { V1 } from '../config/route-version';
import { v1Routes } from './v1';

const router = new Router();

router.get('/test', async (ctx) => {
  // const data = await Department.findAll();
  const data = await sequelize.query('SELECT * from blade_dict');
  console.log(data, 'data===>')

  ctx.body = 'this is a test response!';
});

router.use(V1, v1Routes)

export default router;
